home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / DirectDraw / AnimatePalette / readme.txt < prev    next >
Text File  |  2001-10-10  |  1KB  |  37 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: AnimatePalette Sample
  4. // 
  5. // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   AnimatePalette demonstrates DirectDraw palette animation when in full-screen 
  13.   on a palettized surface. 
  14.  
  15. Path
  16. ====
  17.   Source: DXSDK\Samples\Multimedia\DDraw\AnimatePalette
  18.  
  19.   Executable: DXSDK\Samples\Multimedia\DDraw\Bin
  20.  
  21. User's Guide
  22. ============
  23.   AnimatePalette requires no user input. Press the ESC key to quit the program.
  24.  
  25. Programming Notes
  26. =================
  27.   For details on how to setup a full-screen DirectDraw app, see the FullScreenMode 
  28.   sample. 
  29.   
  30.   To animate the palette on a palettized DirectDraw surface, call 
  31.   IDirectDrawPalette::GetEntries to retrieve the palette colors.  Then every 
  32.   frame (or as often as desired) alter this array as needed, then set the new palette 
  33.   by first calling   IDirectDraw::WaitForVerticalBlank( DDWAITVB_BLOCKBEGIN, NULL ) 
  34.   to synchronize the palette change to a vertical blank, then 
  35.   call IDirectDrawPalette::SetEntries.
  36.   
  37.